<model>s_browse_params

Usage

Filters the parameters used when generating the browse page for records (the model)

Note

Use the plural form of the <model>

Value

array $params

Params passed to the browse query. May include both filtering and sorting parameters

Arguments

None

Examples

class MyPlugin extends :php:class:`Omeka_Plugin_AbstractPlugin`
{

    protected $_filters = array('item_browse_params');

    public filterItemBrowseParams($params)
    {
        //always sort by title instead of order
        $params['sort_param'] = "Dublin Core,Title";
        return $params;
    }
}

Project Versions

Table Of Contents

Previous topic

Using Filters

Next topic

<model>s_select_options

This Page